<div id="nav-col">
    <section id="col-left" class="col-left-nano">
        <div id="col-left-inner" class="col-left-nano-content">
            <div class="collapse navbar-collapse navbar-ex1-collapse" id="sidebar-nav">
                <ul class="nav nav-pills nav-stacked" ng-if="manageTypeCode != 'company'">
                    <li>
                        <a href="#/home" ng-if="manageTypeCode == 'admin'">
                            <i class="fa fa-home mrg-r-sm"></i>
                            <span>首页</span>
                        </a>
                    </li>
                    <li>
                        <a href="#/map"  ng-if=" manageTypeCode != 'allTest'">
                            <i class="fa fa-user"></i>
                            <span>监控台</span>
                        </a>
                    </li>
                    <li>
                        <a href="#" class="dropdown-toggle" ng-if="manageTypeCode == 'admin'|| manageTypeCode == 'zhanzhang'">
                            <i class="fa fa-th-list"></i>
                            <span>评估报告维护</span>
                            <i class="fa fa-chevron-circle-right drop-icon"></i>
                        </a>
                        <ul class="submenu">
                            <li>
                                <a href="#/archives">
                                    评估报告列表
                                </a>
                            </li>
                            <li>
                                <a href="#/archives/edit/0">
                                    新增评估报告
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li ng-repeat="mom in moduleList " on-finish-render-filters></li>
                    <li>
                        <a href="#" class="dropdown-toggle">
                            <i class="fa fa-edit"></i>
                            <span>服务方案管理</span>
                            <i class="fa fa-chevron-circle-right drop-icon"></i>
                        </a>
                        <ul class="submenu">
                            <li ng-if="manageTypeCode != 'allTest'">
                                <a href="#/orderEdit/add">
                                    服务方案制定
                                </a>
                            </li>
                            <li ng-show="manageTypeCode == 'allTest'">
                                <a href="#/orderCallCenter">
                                    服务方案列表
                                </a>
                            </li>
                            <li ng-show="manageTypeCode != 'allTest'">
                                <a href="#/order">
                                    服务方案列表
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#" class="dropdown-toggle" ng-if="manageTypeCode == 'admin'">
                            <i class="fa fa-th-list"></i>
                            <span>服务站管理</span>
                            <i class="fa fa-chevron-circle-right drop-icon"></i>
                        </a>
                        <ul class="submenu">
                            <li>
                                <a href="#/company/list">
                                    服务站列表
                                </a>
                            </li>
                            <li>
                                <a href="#/company/edit/0">
                                    新增服务站
                                </a>
                            </li>
                        </ul>
                    </li>


                    <!--<li>-->
                        <!--<a href="#" class="dropdown-toggle" ng-if="manageTypeCode == 'admin'">-->
                            <!--<i class="fa fa-user"></i>-->
                            <!--<span>会员卡管理</span>-->
                            <!--<i class="fa fa-chevron-circle-right drop-icon"></i>-->
                        <!--</a>-->
                        <!--<ul class="submenu">-->
                            <!--<li ng-if="manageTypeCode == 'zhanzhang'">-->
                                <!--<a href="#/card/index">-->
                                    <!--会员卡-->
                                <!--</a>-->
                            <!--</li>-->
                            <!--<li ng-if="manageTypeCode == 'admin'">-->
                                <!--<a href="#/card">-->
                                    <!--会员卡列表-->
                                <!--</a>-->
                            <!--</li>-->
                            <!--<li ng-if="manageTypeCode == 'admin'">-->
                                <!--<a href="#/card/create">-->
                                    <!--生成会员卡-->
                                <!--</a>-->
                            <!--</li>-->
                            <!--<li ng-if="manageTypeCode == 'admin'">-->
                                <!--<a href="#/card/type">-->
                                    <!--会员卡类型管理-->
                                <!--</a>-->
                            <!--</li>-->
                            <!--<li ng-if="manageTypeCode == 'admin'">-->
                                <!--<a href="#/card/storeHistory">-->
                                    <!--到店消费-->
                                <!--</a>-->
                            <!--</li>-->
                        <!--</ul>-->
                    <!--</li>-->
                    <li>
                        <a href="#" class="dropdown-toggle" ng-if="manageTypeCode == 'allTest'">
                            <i class="fa fa-bar-chart-o"></i>
                            <span>话务中心管理</span>
                            <i class="fa fa-chevron-circle-right drop-icon"></i>
                        </a>
                        <ul class="submenu" ng-if="manageTypeCode == 'allTest'">
                            <li>
                                <a href="#/callCenter/index">
                                    接听、拨打录入
                                </a>
                            </li>
                            <li>
                                <a href="#/callCenter/history">
                                    来电历史信息
                                </a>
                            </li>
                            <li>
                                <a href="#/callCenter/message">
                                    发送短信
                                </a>
                            </li>
                            <li>
                                <a href="#/callCenter/elderQuery">
                                    老人档案查询
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#" class="dropdown-toggle" ng-if=" manageTypeCode == 'admin'">
                            <i class="fa fa-user"></i>
                            <span>服务人员管理</span>
                            <i class="fa fa-chevron-circle-right drop-icon"></i>
                        </a>
                        <ul class="submenu">
                            <li>
                                <a href="#/servant/admin/list">
                                    服务人员列表
                                </a>
                            </li>
                            <li style="display: none;">
                                <a href="#/customer/resume/list/app">
                                    求职人员审核
                                </a>
                            </li>
                            <li>
                                <a href="#/servant/technique/list">
                                    技能管理
                                </a>
                            </li>
                            <li>
                                <a href="#/servant/cer/list">
                                    证书管理
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#" class="dropdown-toggle" ng-if=" manageTypeCode != 'allTest'">
                            <i class="fa fa-bar-chart-o"></i>
                            <span>话务中心管理</span>
                            <i class="fa fa-chevron-circle-right drop-icon"></i>
                        </a>
                        <ul class="submenu" ng-if="manageTypeCode != 'allTest'">
                            <li>
                                <a href="#/callCenter/historyExport">
                                    来电历史信息
                                </a>
                            </li>
                        </ul>
                    </li>
                    <!-- <li>
                         <a href="#" class="dropdown-toggle" ng-if=" manageTypeCode == 'admin'">
                             <i class="fa fa-th-list"></i>
                             <span>网格化管理</span>
                             <i class="fa fa-chevron-circle-right drop-icon"></i>
                         </a>
                         <ul class="submenu" ng-if="manageTypeCode == 'admin'">
                             <li>
                                 <a href="#/grid">-->
                                    <!--网格化管理-->
                                <!--</a>
                            </li>
                        </ul>
                    </li>-->



                </ul>
                <ul class="nav nav-pills nav-stacked" ng-if="manageTypeCode == 'company'">
                    <li>
                        <a href="#/company/home">
                            <i class="fa fa-home mrg-r-sm"></i>
                            <span>首页</span>
                        </a>
                    </li>
                    <li ng-repeat="mom in moduleList " on-finish-render-filters></li>
                    <li>
                        <a href="#" class="dropdown-toggle">
                            <i class="fa fa-file-text-o"></i>
                            <span>服务工单管理</span>
                            <i class="fa fa-chevron-circle-right drop-icon"></i>
                        </a>
                        <ul class="submenu">
                            <li>
                                <a href="#/grabPool">
                                    新的工单
                                </a>
                            </li>
                            <!--<li>-->
                                <!--<a href="#/orderEdit/add">-->
                                    <!--发布订单-->
                                <!--</a>-->
                            <!--</li>-->
                            <li>
                                <a href="#/order/company">
                                    工单历史
                                </a>
                            </li>
                            <!--<li>-->
                                <!--<a href="#/order/yuyue">-->
                                    <!--预约订单-->
                                <!--</a>-->
                            <!--</li>-->
                        </ul>
                    </li>
                    <li style="display:none">
                        <a href="#" class="dropdown-toggle" >
                            <i class="fa fa-file-text-o"></i>
                            <span>合作订单管理</span>
                            <i class="fa fa-chevron-circle-right drop-icon"></i>
                        </a>
                        <ul class="submenu">
                            <li>
                                <a href="#/cooperateEdit/cooperate_id/0">
                                    发布合作订单
                                </a>
                            </li>
                            <li>
                                <a href="#/cooperate">
                                    合作订单库
                                </a>
                            </li>
                            <li>
                                <a href="#/cooperate/release_notes">
                                    订单发布记录
                                </a>
                            </li>
                            <li>
                                <a href="#/cooperate/apply">
                                    合作申请记录
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#" class="dropdown-toggle">
                            <i class="fa fa-user"></i>
                            <span>服务人员管理</span>
                            <i class="fa fa-chevron-circle-right drop-icon"></i>
                        </a>
                        <ul class="submenu">
                            <li>
                                <a href="#/servant/edit/0">
                                    新增服务人员
                                </a>
                            </li>
                            <li>
                                <a href="#/servant/list">
                                    服务人员列表
                                </a>
                            </li>
                            <!--<li>-->
                                <!--<a href="#/servant/talentPoolNew">-->
                                    <!--人才库-->
                                <!--</a>-->
                            <!--</li>-->
                            <!--<li>-->
                                <!--<a href="#/servant/collaborate">-->
                                    <!--合作请求审核-->
                                <!--</a>-->
                            <!--</li>-->
                            <!--<li>-->
                                <!--<a href="#/servant/applyList">-->
                                    <!--合作申请记录-->
                                <!--</a>-->
                            <!--</li>-->
                        </ul>
                    </li>
                    <li>
                        <a href="#/map">
                            <i class="fa fa-user"></i>
                            <span>监控台</span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </section>
</div>

<script type="text/javascript">
    var dropdownRun = 0;
    function dropdown() {
        if( dropdownRun == 1 ){
            return;
        }
        dropdownRun = 1;
        $('#sidebar-nav .dropdown-toggle').on('click', function (e) {
            console.log(e);
            e.preventDefault();
            var $item = $(this).parent();
            if (!$item.hasClass('open')) {
                $item.parent().find('.open .submenu').slideUp('fast');
                $item.parent().find('.open').toggleClass('open');
            }
            $item.toggleClass('open');
            if ($item.hasClass('open')) {
                $item.children('.submenu').slideDown('fast');
            } else {
                $item.children('.submenu').slideUp('fast');
            }
        });
    }

</script>